package appapi.entity.auth;

import appapi.common.BaseEntity;
import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 模块信息
 * 
 * @author lc
 * @version 1.0
 * @date 2023-05-17 10:08:28
 */
@ApiModel
@Data
@NoArgsConstructor
@TableName("modulelist")
public class ModulelistEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "模块ID")
	@NotNull(message = "模块ID不能为空", groups = {UpdateGroup.class})
	@TableId(type = IdType.AUTO)
	private Long moduId;

	@ApiModelProperty(value = "模块标识")
	private String moduTag;

	@ApiModelProperty(value = "所属类别 0 目录 1功能")
	private Long moduType;

	@ApiModelProperty(value = "父级ID")
	private Long parentId;


	@ApiModelProperty(value = "父级节点名称")
	private String parentName;
	@ApiModelProperty(value = "模块名称")
	private String moduName;

	@ApiModelProperty(value = "模块地址")
	private String moduUrl;

	@ApiModelProperty(value = "排序")
	private Integer moduSort;

	@ApiModelProperty(value = "0-启用;1-未启用")
	private Integer moduState;

	@ApiModelProperty(value = "模块图标")
	private String moduIcon;

	@ApiModelProperty(value = "备注")
	private String moduNote;

}
